//
//  XYClassfy.swift
//  XYReadBook
//
//  Created by fox on 2017/9/6.
//  Copyright © 2017年 tsaievan. All rights reserved.
//

import UIKit
import ObjectMapper
class XYClassfy:BaseResponse {
    var male: [Male] = []
    var female:[Male] = []
    var picture:[Male] = []
    var press:[Male] = []
    var ok: Bool = false
    
    override func mapping(map: Map) {
        male               <- map["male"]
        female             <- map["female"]
        picture            <- map["picture"]
        press              <- map["press"]
        ok                 <- map["ok"]
        
    }
}

class Male: BaseResponse {
    var name = ""
    var bookCount:Int = 0
    
    override func mapping(map: Map) {
        name               <- map["name"]
        bookCount          <- map["bookCount"]
    }
}


//
//class Female: BaseResponse {
//    var name = ""
//    var bookCount:Int!
//    
//    override func mapping(map: Map) {
//        name              <- map["name"]
//        bookCount         <- map["bookCount"]
//        
//    }
//}
//class Press: BaseResponse {
//    var name = ""
//    var bookCount:Int!
//    override func mapping(map: Map) {
//        name              <- map["name"]
//        bookCount              <- map["bookCount"]
//    }
//}
